package com.kygeng.springframework.bean;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class UserInfo {
    private String name;
    private Integer age;
    private Address address;

    public UserInfo(String name, Integer age, Address address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public UserInfo() {
    }

    public UserInfo getUserInfo() {
        System.out.println("-----");
        return this;
    }
}